package com.geekteam.manga.Model;

import android.database.Cursor;
import android.os.Parcel;
import android.os.Parcelable;
import android.provider.BaseColumns;

public abstract class BaseModel implements Parcelable {

	protected int _id;
	
	public BaseModel(Parcel parcel){
		
	}

	public BaseModel(int _id){
		this._id = _id;
	}
	
	public BaseModel(Cursor cursor){
		this._id = cursor.getInt(cursor.getColumnIndex(BaseColumns._ID));
	}
	
	public int getprimaryId(){
		return _id;
	}
}
